package com.nanning.web.controller.nanning;


import com.nanning.common.annotation.Anonymous;
import com.nanning.common.core.controller.BaseController;
import com.nanning.common.core.domain.AjaxResult;
import com.nanning.system.service.IBigScreenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 在途重车预警站点情况 前端控制器
 * </p>
 *
 * @author zhurenwang
 * @since 2025-05-03
 */
@Anonymous
@Api(tags = "大屏数据")
@RestController
@RequestMapping("/bigScreen")
public class BigScreenController extends BaseController {

    @Autowired
    private IBigScreenService bigScreenService;

    @ApiOperation("任务完成情况")
    @GetMapping("/taskComplete")
    public AjaxResult taskComplete() {
        return success(bigScreenService.taskComplete());
    }

    @ApiOperation("发送量完成情况")
    @GetMapping("/sendComplete")
    public AjaxResult sendComplete() {
        return success(bigScreenService.sendComplete());
    }

    @ApiOperation("货运收入完成情况")
    @GetMapping("/incomeComplete")
    public AjaxResult incomeComplete() {
        return success(bigScreenService.incomeComplete());
    }

    @ApiOperation("在途重车预警站点情况")
    @GetMapping("/heavyCar")
    public AjaxResult heavyCar() {
        return success(bigScreenService.heavyCar());
    }

    @ApiOperation("部分作业在站、在途情况")
    @GetMapping("/workCar")
    public AjaxResult workCar() {
        return success(bigScreenService.workCar());
    }

    @ApiOperation("今日数据概览")
    @GetMapping("/todayData")
    public AjaxResult todayData() {
        return success(bigScreenService.todayData());
    }

    @ApiOperation("各品类装车完成情况")
    @GetMapping("/carComplete")
    public AjaxResult carComplete() {
        return success(bigScreenService.carComplete());
    }


}
